<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title>计算成绩</title>
    </head>
    <body>
        <?php
        $sum=90+70+80;
        $avg=$sum/3;
        ?>
        <table border="1">
            <thead>
                <tr>
                    <th>科目</th>
                    <th>分数</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>语文</td>
                    <td>90</td>
                </tr>
                <tr>
                    <td>数字</td>
                    <td>80</td>
                </tr>
                <tr>
                    <td>英语</td>
                    <td>70</td>
                </tr>
                <tr>
                    <td>总分</td>
                    <td><?php echo $sum;?></td>
                </tr>
                <tr>
                    <td>平均分</td>
                    <td><?php echo $avg;?></td>
                </tr>
                <tr>
                    <td colspan="2">abcd</td>                    
                </tr>
            </tbody>
        </table>

        
    </body>
</html>
